package com.bgs.controller;
import com.bgs.common.R;
import com.bgs.pojo.vo.OneBeforUserAndStore;
import com.bgs.service.OneBeforUserAndStoreService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/*
* 前台的用户店铺展示
*
*
* */
@RestController
@RequestMapping("/bgs/OneBeforUserAndStore")
public class OneBeforUserAndStoreController {
    @Autowired
    private OneBeforUserAndStoreService oneBeforUserAndStoreServicel;
    /*根据用户id查询店铺*/
    @GetMapping("OneGetBeforUserId/{storeId}")
    public OneBeforUserAndStore OneGetBeforUserId(@PathVariable Integer storeId){
        return oneBeforUserAndStoreServicel.OneGetBeforUserId(storeId);
    }
}
